Repository navigation
fix(id): keep revoked descendants unusable across journal restore (#3373) - #4658
Merged
Merged
Conversation
) Restore marked every Issued capability active, so a journal with Issued(parent), Revoked(parent), Issued(child) resurrected a usable child under a revoked parent. Restore now walks the participant's ancestor chain at admission and inserts the capability already revoked, closing the hole the triage probe demonstrated. Compaction emits each revoked parent before its descendants' own Issued/Revoked pairs, so the child's explicit Revoked entry would hit an already-revoked record. A restore-local inherited-revocations set absorbs exactly that entry without weakening the unknown-or-double revocation refusal. Tests: restore_does_not_resurrect_a_delegate_issued_after_parent_revocation covers both the missing-entry and the compacted-entry orders.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 4 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. CodeRabbit Verify
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #3373.
Triage basis: queue task 5144 reproduced that
WorldCore::restoremarks everyIssuedcapability active, so a journal withIssued(parent), Revoked(parent), Issued(child)resurrects a usable child under a revoked parent.Fix (
pkgs/id/src/world/core.rs): restore walks the admitted ancestor chain at eachIssuedentry and inserts the capability already revoked when any ancestor is revoked. Compaction emits each revoked parent before its descendants ownIssued/Revokedpairs, so a restore-localinherited_revocationsset absorbs exactly that already-coveredRevokedentry without weakening the unknown-or-double-revocation refusal.Tests: new
restore_does_not_resurrect_a_delegate_issued_after_parent_revocationcovers both the missing-entry and compacted-entry orders. Laptop probe: new test passes; fullworld::tests::tests::module 87 passed / 0 failed;world::suite 161 passed / 0 failed; touched regions rustfmt-clean (pre-existing file drift elsewhere untouched).Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.